package com.zhaoyue.study.concurrency.thread;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 2016/8/30
 * Time: 15:22
 * To change this template use File | Settings | File Templates.
 */
public class MyThread extends Thread{


    @Override
    public void run() {
        super.run();
        try{
            Thread.sleep(3000);
        }catch (Exception e){
            e.printStackTrace();
        }
        System.out.println("Hello World");
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        System.out.println("start");
        myThread.start();
        System.out.println("end");
    }
}
